@use "sass:map";
@use "sass:math";
*{
  user-select:none
}
::v-deep .rich-text img{
	width: 100%;
	height: auto;
}
$colors:(
  primary:#2979ff,
  error:#fa3534,
  warning:#ff9900,
  info:#909399,
  success:#19be6b,
  font:#303133,
  border:#dcdfe6,
  bg:#f3f4f6,
  white:#fff,
  yellow:#fbef08,
  auqa:#02EEFF 
);

$positions:(
  fix:fixed,
  abs:absolute,
  rlt:relative
);
.fl{float: left;}
.fr{float: right;}
.tal{text-align:left;}
.tac{text-align:center;}
.tar{text-align:right;}
.cpt{cursor:pointer;}
.ibk{display:inline-block;}
.bor{border:solid 1px #333;}
.circle{border-radius:50%;}
.wfull{width:100%}
.link{
  color: map.get($colors, 'primary');
  &:hover{
    cursor:pointer;
  }
  text-decoration: underline;
}
.holder {
  display:flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: dashed 1px map.get($colors, 'border');
  color: map.get($colors, 'border');
  font-size:24px;
  &:hover{
    border: dashed 1px map.get($colors, 'primary');
    color: map.get($colors, 'primary');
  }
}
.clear-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #f2f2f2;
  color: #999;
  &:hover {
    background: map.get($colors, 'error');
    color: #fff;
    cursor: pointer;
  }
}
.img{
  @extend .wfull;
  height: auto
}
@each $k,$v in $colors{
  .btn-#{""+$k} {
    color: #fff;
    background: $v;
    border-color: $v;
    cursor: pointer;
    &:focus {
      color: #fff;
      background: $v;
      border-color: $v;
    }
    &:hover {
      color: #fff;
      background: rgba($v,.8);
      border-color: rgba($v,.8);
    }
  }
}

.btn-circle {
  display: inline-block;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  background: #f2f2f2;
  border-radius: 50%;
  color: #ccc;
  margin-right: 8px;
  &:hover {
    cursor: pointer;
    background: #999;
    color: #fff;
  }
}
.scroll {
  overflow: auto;
  &::-webkit-scrollbar {width: 8px; height: 8px; background-color: #eee; }
  &::-webkit-scrollbar-track { background-color: #eee; }
  &::-webkit-scrollbar-thumb { border-radius:8px;background-color: #999; }
}
@for $i from 1 through 5 {
  .line#{$i} {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: $i;
    line-clamp: $i;
    -webkit-box-orient: vertical;
  }
}

@each $k,$v in $colors{
  .dot-#{""+$k} {
    display:inline-block;
    width: 12px;
    height: 12px;
    border-radius:50%;
    background:$v;
  }
}

@each $k,$v in $colors{
  .ltag-#{""+$k} {
    z-index: 9;
    position: absolute;
    right: -16px;
    top: 10px;
    width: 68px;
    border: solid 16px transparent;
    border-top: 0;
    border-bottom: solid 16px $v;
    transform: rotate(45deg);
    .name {
      text-align: center;
      position: absolute;
      font-size: 10px;
      color: #fff;
      width: 100%;
    }
  }
}

@for $i from 1 through 30 {
  .bor-rds-#{$i}{
    border-radius: 1px * $i
  }
}

@for $i from 1 through 10 {
  .z#{$i}{
    z-index: 100 * $i
  }
}

@each $k,$v in $positions{
  .pos-#{""+$k}{
    position: $v;
    @for $i from 0 through 60 {
      &.t#{$i}{
        top: 1px * $i
      }
      &.l#{$i}{
        left: 1px * $i
      }
      &.r#{$i}{
        right: 1px * $i
      }
      &.b#{$i}{
        bottom: 1px * $i
      }
    }
  }
}

@each $k,$v in $colors{
  .#{""+$k}{
    color: $v;
  }
  .bg-#{""+$k}{
    background: $v;
  }
  .lk-#{""+$k}{
    cursor:pointer;
    &:hover{
      color: $v;
    }
  }
}

@for $i from 1 through 60 {
  .fs#{$i} { font-size: 1px * $i; }
}
@for $i from 1 through 60 {
  .fsrem#{$i} { font-size: 0.1rem * $i; }
}
@for $i from 1 through 10 {
  .fw#{$i} { font-weight: 100 * $i; }
}

@for $i from 1 through 30 {
  @each $k,$v in $colors{
    .bor-#{""+$k}-#{$i} {
      border: solid 1px * $i $v;
    }
  }
}

@for $i from 1 through 1200 {
  .w#{$i} { width: 1px * $i; }
  .h#{$i} { height: 1px * $i; }
}

@for $i from 1 through 50 { 
  .lin-h#{$i} { line-height: 1rem * $i; }
}

@for $i from 1 through 500 {
  .mt#{$i} { margin-top: #{$i}px; }
  .mb#{$i} { margin-bottom: #{$i}px; }
  .ml#{$i} { margin-left: #{$i}px; }
  .mr#{$i} { margin-right: #{$i}px; }
  .mtb#{$i} { margin-top: #{$i}px; margin-bottom: #{$i}px; }
  .mlr#{$i} { margin-left: #{$i}px; margin-right: #{$i}px; }
  .pd#{$i} { padding: #{$i}px; }
  .pt#{$i} { padding-top: #{$i}px; }
  .pb#{$i} { padding-bottom: #{$i}px; }
  .pl#{$i} { padding-left: #{$i}px; }
  .pr#{$i} { padding-right: #{$i}px; }
  .ptb#{$i} { padding-top: #{$i}px; padding-bottom: #{$i}px; }
  .plr#{$i} { padding-left: #{$i}px; padding-right: #{$i}px; }
}
.flx {
  display: flex;
  align-items: center;
}
.flx-c {
  @extend .flx;
  justify-content: center;
}
.flx-a {
  @extend .flx;
  justify-content: space-around;
}
.flx-b {
  @extend .flx;
  justify-content: space-between;
}
.flx-s {
  @extend .flx;
  justify-content: flex-start;
}
.flx-e {
  @extend .flx;
  justify-content: flex-end;
}

@for $i from 1 through 30 {
  .flx-#{$i}{
    flex: $i
  }
}

@for $i from 1 through 30 {
  @for $j from 1 through 30 {
    .row-#{$i} {
      width: 100%;
      padding: calc($i * 0.5px);
      display: flex;
      flex-wrap: wrap;
      .col-#{$j} {
        width: calc(100% / $j);
        padding: calc($i * 0.5px);
      }
    }
  }
}

table.table {
  width: 100%;
  tr {
    height: 36px;
    &.head {background: #f2f2f2;}
    &.seled {
      background: #1890ff;color:#fff;
      .btn-circle{
        background:#fff;
        color:rgba(0,0,0,0.65);
      }
    }
    td {
      padding: 10px;
      text-align: center;
      border: solid 1px #e2e2e2;
      &.tal {
        text-align: left
      }
    }
  }
}

table.form {
  width: 100%; 
  &.borderd {
    tr {
      td {
        border: solid 1px #e2e2e2;
      }
    }
  }
  tr {
    td {
      padding: 6px 10px;
      text-align: left;

      .help {
        font-size: 12px;
        color: #e07979;
        margin-top: 4px;
      }

      &.label {
        text-align: right;

        &.strong{
          background:#666;
          color:#fff;
        }
        &.need:before {
          content: "*";
          font-size: 18px;
          position: relative;
          top: 5px;
          padding-right: 8px;
          color: red;
        }

        &.top {
          vertical-align: top;
          padding-top: 12px;
        }
      }
    }
  }
}
.form{
  .ant-form-item{
    margin-bottom:10px;
  }
}
.card{
  position:relative;
  border:solid 1px #f2f2f2;
  padding:15px 15px 60px;
  cursor:pointer;
  border-radius:4px;
  box-shadow: 2px 4px 10px #f2f2f2;
  &:hover{
    box-shadow: 2px 4px 20px #ddd;
  }
  .foot{
    box-sizing: border-box;
    height:40px;
    line-height:40px;
    padding:0 10px;
    width:100%;
    position:absolute;
    bottom:10px;left:0;
  }
}
.header-btn{
  display: inline-block;
  padding: 0 20px;
  transition: all 0.3s;
  height:100%;
  &:hover{
    background:rgba(0,0,0,0.125);
    cursor:pointer;
  }
}
.ltitle{
  font-weight:bold;
  border-left:solid 3px #1890ff;
  padding-left:10px;
  margin-top:30px;
  margin-bottom:10px;
}


ul{
  list-style:none;
  padding:0;
  margin:0;
 
}
i{
  font-style:normal;
}
em{
  font-style:normal;
  
}